package com.netty.bfport.http.common.base;

import org.springframework.stereotype.Component;

/**
 * @Author: zhaoyang
 * @Data: 2021/10/22 15：01
 * @Description
 */
@Component
public class BaseResponseVO {

    /**
     * 返回状态码
     */
    private Integer code;

    /**
     * 返回信息
     */
    private String msg;

    /**
     * 相应参数
     */
    private Object data;

    public BaseResponseVO() {
    }

    public BaseResponseVO(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }

    public Object getData() {
        return this.data;
    }

    public void setCode(final Integer code) {
        this.code = code;
    }

    public void setMsg(final String msg) {
        this.msg = msg;
    }

    public void setDate(final Object data) {
        this.data = data;
    }


    @Override
    public String toString() {
        return "BaseResponse(code=" + this.getCode() + ", msg=" + this.getMsg() + ", data=" + this.getData() + ")";
    }
}
